package com.jingyanzi.member.api;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.jingyanzi.marketing.domain.PresentDo;


@FeignClient("marketing-service")
@RestController
@RequestMapping("/api")
public interface PresentCientAPI {

	@GetMapping("/present/{id}")
	public PresentDo get(@PathVariable(value = "id") Integer id);
	
	@PutMapping("/present")
	public void edit(@RequestBody PresentDo domain);
}
